package com.lhn.service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author lhn
 * @date 2024-08-23 14:27
 */

public interface LogService {
    @Transactional(propagation = Propagation.REQUIRES_NEW)  //Propagation.REQUIRES_NEW 开启新的事务
    void log(String from, String to, double money);
}
